import request from '../request'
export const reqGetTokenByCode = (code) => {
  return request({
    url: `/mall-api/weixin/wxLogin/${code}`
  })
}

export const reqGetUserInfo = () => {
  return request({
    url: '/mall-api/weixin/getuserInfo'
  })
}
//添加或更新用户信息
export const reqAddOrUpdateUserInfo = (userInfo) => {
  return request({
    url: `/mall-api/weixin/updateUser`,
    method: 'post',
    data: userInfo
  })
}